package com.dragee.modules.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragee.config.resolver.LongJsonDeserializer;
import com.dragee.config.resolver.LongJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用品表
 * 
 * @author tc
 * @email tc@mail.com
 * @date 2023-03-29 14:41:10
 */
@Data
@TableName("t_shop_goods")
public class ShopGoodsEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long id;

    /**
     * 名字
     */
    private String name;

    /**
     * 商铺ID
     */
    private String shopId;

    /**
     * 商品描述
     */
    private String description;

    /**
     * 库存
     */
    private Integer sum;

    /**
     * 成本
     */
    private String cost;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 排序字段
     */
    @TableField(fill = FieldFill.INSERT)
    private Long sort;


    private String type;

    }